<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="MachineManagement, App_Web_uxrncow4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <link href="css/googleapis.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
{
font-family: 'Arimo', sans-serif !important;
}
        .textbox
        {
            font-family: Verdana;
            font-size: 9pt;
        }
        .btnRt003366
        {
            font-family: Verdana;
            font-size: 9pt;
            font-weight: 700;
        }
              .card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
      margin-top: -37px;
    padding: 7px !important;
}
#MainContent_Label39
{
   font-size:14px;
    font-weight:bold;   
}
#MainContent_lblMachineType
{
    font-size:14px;
    font-weight:bold;   
}
#MainContent_Label38
{
    font-size:14px;
    font-weight:bold;  
}
#MainContent_lblPortNo
{
    font-size:14px;
    font-weight:bold;    
}
#MainContent_lblMachineName
{
    font-size:14px;
    font-weight:bold;    
}
#MainContent_lblBranchName
{
    font-size:14px;
    font-weight:bold;
}
#MainContent_lblInOutOnlyforAccessControl
{
     font-size:14px;
    font-weight:bold;   
}
#MainContent_lblSelectCountrieTimeZone
{
      font-size:14px;
    font-weight:bold;    
}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <script type="text/javascript">
      
      var txttext = document.getElementById("<%= CboBranch.ClientID %>").value;
            if (txttext == "") {
                alert("Please Enter Create Branch First");
                document.getElementById("<%= CboBranch.ClientID %>").focus();

                return false;
            }
    </script>
             <div class="main-panel">
        <div class="content">
        <div class="container" id="MachineManagement12" runat="server">
            <div class="row dash-pane2">	

            <div class="card">
                <div class="card-header card-header-warning">
                  <h4 class="card-title"> <i class="fa fa-list fa-fw"></i>
                      <asp:Label ID="lbloldsrno" runat="server" Text="" Visible="false"></asp:Label>
                        <asp:Label ID="lblAddEditMachine" runat="server" Text="Add/Edit Machine"></asp:Label>  &nbsp;&nbsp;&nbsp;  <asp:Label ID="Label1" runat="server" Text=""></asp:Label></h4>
                </div>
                <div class="card-body ">
                    <div class="row">
                        <div class="col-8">
                 <div class="row">
                    <div class="col-md-4"">
                        <b>
                            <asp:Label ID="Label39" runat="server" Text="Machine No"></asp:Label>*</b><br />
                        <asp:TextBox ID="txtmachineno" runat="server"  CssClass="form-control" style="width:180px;"></asp:TextBox>
                        <asp:TextBox ID="txtDeviceId" runat="server" Visible="False" class="form-control" style="width:180px;"></asp:TextBox>
                    </div>
                    <div class="col-md-4">
                        <b>
                            <asp:Label ID="lblMachineType" runat="server" Text="Machine Type"></asp:Label>
                        </b>
                        <%-- <input class="form-control"  />--%>
                        <asp:DropDownList ID="cbomachinetype" runat="server" class="form-control" AutoPostBack="True"
                            OnSelectedIndexChanged="cbomachinetype_SelectedIndexChanged"  style="width:180px;">
                        
                           
                        </asp:DropDownList>
                    </div>
                    <div class="col-md-4">
                        <b>
                            <asp:Label ID="Label38" runat="server" Text=" Serial No"></asp:Label></b>
                        <%-- <input class="form-control"  />--%>
                        <asp:TextBox ID="txtmachineip" runat="server" class="form-control" style="width:180px;"></asp:TextBox>
                    </div>
                    <div class="col-md-4">
                        <b>
                            <asp:Label ID="lblPortNo" runat="server" Text="Port No."></asp:Label></b>
                        <%--  <input class="form-control"  />--%>
                        <asp:TextBox ID="txtportno" runat="server" class="form-control" style="width:180px;"></asp:TextBox>
                    </div>
                    <div class="col-md-4">
                        <b>
                            <asp:Label ID="lblMachineName" runat="server" Text="Machine Name"></asp:Label></b>
                        <%-- <textarea class="form-control" rows="6"></textarea>--%>
                        <asp:TextBox ID="txtpwd" runat="server" class="form-control" MaxLength="40" style="width:180px;"></asp:TextBox>
                    </div>
                    <div class="col-md-4">
                        <b>
                            <asp:Label ID="lblBranchName" runat="server" Text="Branch Name"></asp:Label>
                            *</b>
                        <%-- <textarea class="form-control" rows="6"></textarea>--%>
                        <asp:DropDownList ID="CboBranch" runat="server" class="form-control" style="width:180px;">
                        </asp:DropDownList>
                    </div>
                       <div class="col-md-4">
                        <b>
                            <asp:Label ID="lblSelectCountrieTimeZone" runat="server" Text="Select country time zone *" ></asp:Label>
                            *</b>
                      
              
              
           
                  <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" class="form-control" 
          AppendDataBoundItems="true" style="width:180px;" >
            <asp:ListItem Text="Select a TimeZone" Value="Default value" />
    </asp:DropDownList>
            

                           
                      
                    </div>
                    <div class="col-md-4">
                        <b>
                            <asp:Label ID="lblInOutOnlyforAccessControl" runat="server" Text="In/Out Only for Access Control"></asp:Label></b>
                        <%-- <textarea class="form-control" rows="6"></textarea>--%>
                        <asp:DropDownList ID="DropDownList1" runat="server" class="form-control" style="width:180px;">
                            <asp:ListItem>In</asp:ListItem>
                            <asp:ListItem>Out</asp:ListItem>
                            <asp:ListItem>In/Out</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                 
                 </div>
                        </div>
                        <div class="col-4">
                              <img src="DeviceModel/Pafis/Pro%201800.jpg" id="productimg" alt="Product Image" style="width:300px;" runat="server" visible="false"  />
                        </div>
                    </div>
                 <div class="row" style="margin-left:auto; margin-right:auto; display:table; margin-top:150px;">
                
                        <asp:Button ID="cmdsave" runat="server" Text="Save" OnClick="cmdsave_Click" OnClientClick="return validate()"
                            type="button" class="btn btn-success " /><i class="fa fa-plus;"></i>&nbsp;&nbsp;
                        <asp:Button ID="cmdcancel" runat="server" type="button" Text="Cancel" OnClick="cmdcancel_Click"
                            class="btn btn-danger" /><i class="fa fa-trash-o;"></i>
                  
                 </div>
                </div>
              </div>
					
				</div>

            </div>
            </div>
            </div>
            <script src="js/jquery-1.8.3.min.js"
       type="text/javascript"></script>
   
</asp:Content>
